package com.xs.serviceimpl;

import java.util.List;

import com.xs.bean.UserBean;
import com.xs.dao.UserDao;
import com.xs.daoimpl.UserDaoImpl;
import com.xs.service.UserService;

public class UserServiceImpl implements UserService {

	UserDao ud;

	public UserServiceImpl() {
		ud = new UserDaoImpl();
	}

	// 登录方法
	@Override
	public UserBean login(String name, String ps) {
		return ud.login(name, ps);
	}
	//查询所有用户
	@Override
	public List<UserBean> getUserInfo(int  objectId) {
		return ud.getUserInfo(objectId);
	}
	// 查询当前用户
	@Override
	public UserBean getUserInfoById(int objectId) {
		return ud.getUserInfoById(objectId);
	}

	

}
